package com.byy.pojo;

import java.util.Objects;

public class User {

    private String naem;


    public User() {
    }

    public User(String naem) {
        this.naem = naem;
    }

    public String getNaem() {
        return naem;
    }

    public void setNaem(String naem) {
        this.naem = naem;
    }

    @Override
    public String toString() {
        return "User{" +
                "naem='" + naem + '\'' +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        User user = (User) o;
        return Objects.equals(naem, user.naem);
    }

    @Override
    public int hashCode() {
        return Objects.hash(naem);
    }
}
